package activitytest.example.com.application;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

/**
 * Created by zhanyihong on 2017/12/6.
 */

public class Setup3Activity  extends Activity{

    private EditText et_phone_number;
    private Button bt_select_number;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setup3);

        initUI();
    }

    private void initUI() {
        et_phone_number = (EditText)findViewById(R.id.et_phone_number);
        bt_select_number = (Button) findViewById(R.id.bt_select_number);

        et_phone_number.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(getApplicationContext(),ContactListActivity.class);
                startActivityForResult(intent,0);
            }
        });
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
    }

    public void  nextPage(View view){
        Intent intent3 = new Intent(getApplicationContext(), Setup4Activity.class);
        startActivity(intent3);

        finish();
    }
    public void  prePage(View view){
        Intent intent3 = new Intent(getApplicationContext(), setup2Activity.class);
        startActivity(intent3);

        finish();
    }
}
